Carbon


FSDeleteObject

Header: Files.h Carbon status: Supported

Deletes a file or an empty directory.

OSErr FSDeleteObject (
    const FSRef *ref
);
ref

The file or directory to be deleted. If the object to be deleted is a directory, it must be empty (it must contain no files or folders).

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)